package com.lwc.remote;

import com.lwc.bean.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "sc-system")
public interface UserRemoteClient {

    @GetMapping("/get")
    User get(@RequestParam(value = "id") int id);


    @GetMapping("/getList")
    List<User>getlist(@RequestParam("page") int page,@RequestParam("pageSize") int pageSize);
}
